package com.example.demo.domain;

public class Bicycle {
    private String type;//电驴型号，电压
    private String brand;//生产厂家
    private float priceBefore;//原价
    private float priceSell;//售价
    private String condition;//新旧程度
    private String seller;//卖家

    public Bicycle(){
    }
    public Bicycle(String type,String brand,float priceBefore,float priceSell,String condition,String seller)
    {
        this.type=type;
        this.brand=brand;
        this.priceBefore=priceBefore;
        this.priceSell=priceSell;
        this.condition=condition;
        this.seller=seller;

    }
    @Override
    public String toString() {
        return "电驴型号：" + type+
                ", 生产厂家：" + brand+
                ", 原价：" + priceBefore +
                ", 售价：" + priceSell +
                ", 新旧程度：" + condition +
                ", 卖家：" + seller ;
    }

    public String getType() {
        return type;
    }
}
